<%--
  Created by IntelliJ IDEA.
  User: mikom
  Date: 25.12.2009
  Time: 17:34:42
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@include file="/WEB-INF/includes/tags.jsp" %>
<div class="center_text">
    <h3>
        <s:property value="news.name"/>
    </h3>
    <s:property value="news.content" escape="false"/>
    <table class="info_date_source">
        <colgroup>
            <col width="50%"/>
            <col width="50%"/>
        </colgroup>
        <tr>
            <td><s:text name="ui.date"/>:<fmt:formatDate value="${news.create}" pattern="dd-MM-yyyy hh:mm:ss"/></td>
            <td style="text-align:right;"><s:text name="ui.source"/>:<k:source link="${news.source}"/></td>

        </tr>
    </table>
    <hr/>
    <div id="comments">
        <s:iterator value="comments">
            <fieldset>
                <s:hidden name="id"/>
                <legend><s:property value="user"/></legend>
                <s:property value="content" escape="false"/>
            </fieldset>
        </s:iterator>
    </div>
    <hr/>
    <div>

        <s:form namespace="/news" action="addComment" id="comment_form">
            <%@include file="/WEB-INF/includes/commentForm.jsp" %>
            <s:hidden name="news.id"/>
        </s:form>

    </div>
</div>
